<?php
/**
* SocialEngine
*
* @category   Application_Extensions
* @package    Flashgame
* @version    $Id: Fields.php 6820 2010 YouNet $
* @author     To Anh
*/

class Flashgame_Form_Custom_Fields extends Fields_Form_Standard
{
    public $_error = array();

    public function init()
    { 
        // custom flashgame fields
        if( !$this->_item ) {
            $flashgame_item = new Flashgame_Model_Flashgame(array());
            $this->setItem($flashgame_item);
        }
        parent::init();

        $this->removeElement('submit');
    }

    public function loadDefaultDecorators()
    {
        if( $this->loadDefaultDecoratorsIsDisabled() )
        {
            return;
        }

        $decorators = $this->getDecorators();
        if( empty($decorators) )
        {
            $this
            ->addDecorator('FormElements')
            ; //->addDecorator($decorator);
        }
    }
}